package com.rb.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by Brooks on 2014/5/7.
 */
@Entity
public class 题库试题 {
    private String id;
    private String 调研Id;
    private String 题库Id;
    private String 试题Id;
    private String 试题名称;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "调研id")
    public String get调研Id() {
        return 调研Id;
    }

    public void set调研Id(String 调研Id) {
        this.调研Id = 调研Id;
    }

    @Basic
    @Column(name = "题库id")
    public String get题库Id() {
        return 题库Id;
    }

    public void set题库Id(String 题库Id) {
        this.题库Id = 题库Id;
    }

    @Basic
    @Column(name = "试题id")
    public String get试题Id() {
        return 试题Id;
    }

    public void set试题Id(String 试题Id) {
        this.试题Id = 试题Id;
    }

    @Basic
    @Column(name = "试题名称")
    public String get试题名称() {
        return 试题名称;
    }

    public void set试题名称(String 试题名称) {
        this.试题名称 = 试题名称;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        题库试题 题库试题 = (题库试题) o;

        if (id != null ? !id.equals(题库试题.id) : 题库试题.id != null) return false;
        if (试题Id != null ? !试题Id.equals(题库试题.试题Id) : 题库试题.试题Id != null) return false;
        if (试题名称 != null ? !试题名称.equals(题库试题.试题名称) : 题库试题.试题名称 != null) return false;
        if (调研Id != null ? !调研Id.equals(题库试题.调研Id) : 题库试题.调研Id != null) return false;
        if (题库Id != null ? !题库Id.equals(题库试题.题库Id) : 题库试题.题库Id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (调研Id != null ? 调研Id.hashCode() : 0);
        result = 31 * result + (题库Id != null ? 题库Id.hashCode() : 0);
        result = 31 * result + (试题Id != null ? 试题Id.hashCode() : 0);
        result = 31 * result + (试题名称 != null ? 试题名称.hashCode() : 0);
        return result;
    }
}
